package Test;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        StringBuilder stringBuilder = new StringBuilder();
        String strings = scan.next();
        System.out.println(strings);
        char[] ch = new char[strings.length()];
        ch = strings.toCharArray();
        int[] size = new int[strings.length()];
        for (int i = 0; i < strings.length(); i++) {
            char tmp = ch[i];
            for (int j = i+1; j < strings.length(); j++) {
                if(tmp == ch[j])
                    ch[j] = 0;
            }
        }
        for (int i = 0; i < ch.length; i++) {
            if(ch[i] != 0) {
                stringBuilder.append(ch[i]);
            }
        }
        System.out.println(stringBuilder);
    }
}